package com.module04.work.demo03;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class FileCopyByThreadPool {

    public static void main(String[] args) {
        //1.创建一个线程池
        ExecutorService executorService = Executors.newFixedThreadPool(10);
        //2.向线程池中布置任务
        executorService.submit(new FileCopyCallableImpl());
        //3.关闭线程池
        executorService.shutdown();
    }
}


